<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>翻译中英文</title>
    <link rel="stylesheet" href="style.css">
    <link rel="stylesheet" href="https://cdn.bootcss.com/twitter-bootstrap/4.3.1/css/bootstrap.min.css">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
</head>
<body>
    <div class="herd">
        <h1>翻译</h1>
        <p>中英互译</p>
    </div>
    <div class="container">
        <div class="row justify-content-between mb-3">
            <div class="col-md-3">
                <div class="btn-group btn-block" id="btn_if">
                    <button type="button" class="btn btn-primary" disabled="disabled">中文</button>
                    <button type="button" class="btn btn-secondary" disabled="disabled">英语</button>
                </div>
            </div>
            <div class="col-md-3">
                <div class="btn-center">
                    <button type="button" class="btn btn-secondary btn-block" onclick="swap()">
                        转换
                    </button>
                </div>
            </div>
            <div class="col-md-3">
                <div class="btn-group btn-block" id="btn_that">
                    <button type="button" class="btn btn-primary" disabled="disabled">英语</button>
                    <button type="button" class="btn btn-secondary" disabled="disabled">中文</button>
                </div>
            </div>
        </div>
            <div class="container">
                <div class="row">
                    <div class="col-md-6">
                        <div class="from-goup">
                            <textarea class="form-control" rows="5" id="new"></textarea>
                        </div>
                    </div>
                    <div class="col-md-6">
                        <div class="from-goup">
                            <textarea class="form-control" rows="5" id="old"></textarea>
                        </div>
                    </div>
                </div>
            </div>
        <div class="fy">
            <div class="row">
                <div class="col-md-3">
                    <button type="button" class="btn btn-primary btn-block btn-lg" onclick="fy()">翻译</button>
                </div>
            </div>
        </div>
    </div>

<script src="js.js"></script>
</body>
</html>